package mybatisTest.parsexmltest.mybatisxml;

import org.apache.ibatis.parsing.XNode;
import org.apache.ibatis.parsing.XPathParser;
import org.xml.sax.InputSource;

import java.io.FileNotFoundException;
import java.io.FileReader;

public class XPathParserTest {
    public static void main(String[] args) throws FileNotFoundException {
        int a=1;
        XPathParser xp = new XPathParser(new FileReader("D:\\code\\javaweb\\Java\\src\\main\\java\\mybatisTest\\parsexmltest\\sax\\book.xml"));


        XNode xNode = xp.evalNode("//book");
        System.out.println(xNode);
    }
}
